//
//  DLImageEditTool.h
//  DLPhotoBrowser
//
//  Created by long on 2018/5/5.
//  Copyright © 2018年 long. All rights reserved.
//

#import <UIKit/UIKit.h>

@class DLPhotoConfiguration;

typedef NS_OPTIONS(NSUInteger, DLImageEditType) {
    DLImageEditTypeClip     = 1 << 1,
    DLImageEditTypeRotate   = 1 << 2,
    // 下面这两种暂时无效
    DLImageEditTypeDraw     = 1 << 3,
    DLImageEditTypeMosaic   = 1 << 4,
};

@interface DLImageEditTool : UIView

- (instancetype)initWithEditType:(DLImageEditType)type
                           image:(UIImage *)image
                   configuration:(DLPhotoConfiguration *)configuration NS_DESIGNATED_INITIALIZER;

@property (nonatomic, strong) UIImage *editImage;

@property (nonatomic, copy) void (^cancelEditBlock)(void);
@property (nonatomic, copy) void (^doneEditBlock)(UIImage *);

@end
